﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SEscortRobSuccessInfo extends IMessageBase
    {
        public var level:int;
        public var color:int;
        public var rate:int;
        public var entityId:SEntityId;
        public var name:String;
        public var guildName:String;
        public const _type:int = 19010;
        public static var _regist:SEscortRobSuccessInfo = new SEscortRobSuccessInfo(true);

        public function SEscortRobSuccessInfo(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SEscortRobSuccessInfo();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.level);
            param1.writeInt(this.color);
            param1.writeInt(this.rate);
            this.entityId.__write(param1);
            param1.writeString(this.name);
            param1.writeString(this.guildName);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.level = param1.readInt();
            this.color = param1.readInt();
            this.rate = param1.readInt();
            this.entityId = new SEntityId();
            this.entityId.__read(param1);
            this.name = param1.readString();
            this.guildName = param1.readString();
            return;
        }// end function

    }
}
